package com.sundi.ecgeneralize.service.impl;

import com.sundi.ecgeneralize.dto.CouponDto;
import com.sundi.ecgeneralize.entity.EcCoupon;
import com.sundi.ecgeneralize.mapper.EcCouponMapper;
import com.sundi.ecgeneralize.service.IEcCouponService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 优惠券信息及规则表 服务实现类
 * </p>
 *
 * @author Mht
 * @since 2020-02-24
 */
@Service
public class EcCouponServiceImpl extends ServiceImpl<EcCouponMapper, EcCoupon> implements IEcCouponService {

    @Override
    public List<EcCoupon> selectConponList(CouponDto couponDto) {
        return this.baseMapper.selectConponList(couponDto);
    }

    @Override
    public void updAndDel(Integer id) {
        this.baseMapper.updAndDel(id);
    }

    @Override
    public EcCoupon getCoupon(Integer id) {

        return this.baseMapper.getCoupon(id);
    }
}
